/****************************************************************************************
* Copyright (C): 
* @file : Switch.cpp
* @brief : // 传感器函数实现
* @author : Zhang
* @email: : 
* @version : 1.0.0
* @date : 2023年9月18日
****************************************************************************************/

#include "Switch.h"
#include <Arduino.h>


void Sensor_init(void){
    pinMode(HEATING_SWITCH, OUTPUT);
    pinMode(IRRIGATION_SWITCH, OUTPUT);
    pinMode(LIGHT_SWITCH, OUTPUT);
    pinMode(FERTILIZER_SWITCH, OUTPUT);
    pinMode(FAN_SWITCH, OUTPUT);
}


void Oil_Heating_ON(void){
    digitalWrite(HEATING_SWITCH, LOW);
}
void Oil_Irrigation_ON(void){
    digitalWrite(IRRIGATION_SWITCH, LOW);
}
void Oil_Light_ON(void){
    digitalWrite(LIGHT_SWITCH, LOW);
}
void Oil_Fertilizer_ON(void){
    digitalWrite(FERTILIZER_SWITCH, LOW);
}
void Oil_Fan_ON(void){
    digitalWrite(FAN_SWITCH, LOW);
}

void Oil_Heating_OFF(void){
    digitalWrite(HEATING_SWITCH, HIGH);
}
void Oil_Irrigation_OFF(void){

}
void Oil_Light_OFF(void){

}
void Oil_Fertilizer_OFF(void){

}
void Oil_Fan_OFF(void){

}